<?

if (!defined('SMF'))
	die('Hacking attempt...');
	
function template_blacknova_above()
{
	global $boarddir;
	
	// Don't display the header frames if we are still creating a player
	if (isset($_GET['sa']) && $_GET['sa'] <> 'createplayer' && $_GET['sa'] <> 'createplayer2')
	{
		echo '
	<div id="bnt_top" class="bnt_outline_top">
		<table align="center" border="0" cellpadding="0" cellspacing="0" >
			<tr>
				<td valign="bottom">
					<div id="bnt_playerinfo" class="bnt_playerinfo_display">';
	
		include($boarddir . '/bnt/header.php');	
		
		echo '		
					</div>
				</td>
				<td valign="bottom">
					<div id="bnt_newsdisplay" class="bnt_newsframe_display">';
	
		include($boarddir . '/bnt/fader.php');	
	
		echo '
					</div>
				</td>
			</tr>
		</table>
	</div>';
	}
	else
	{
		echo '
	<div id="bnt_top" class="bnt_outline_top">
	</div>';
	}
}

function template_blacknova_below()
{
}

function template_index()
{
	global $boarddir;
	
	echo '
	<table class="bnt_login_border" align="center" border="0" cellpadding="0" cellspacing="0" >
		<tr>
			<td>
				<div class="bnt_mainframe_border">
					<div id="bnt_mainframe" class="bnt_mainframe_display">';
				
	include($boarddir . '/bnt/login.php');
	
	echo '
					</div>
				</div>
			</td>
		</tr>
	</table>
	';
}

function template_main()
{
	global $boarddir, $context;
	
	echo '
	<div id="bnt_bottom" class="bnt_outline_bottom">';
	
	// Special display for the galaxy screen
	if ($_GET['sa'] == 'galaxy')
	{
		
	echo '
		<table align="center" border="0" cellpadding="0" cellspacing="0" >
			<tr>
				<td>
						<div id="bnt_mainframe" class="bnt_galaxyframe_display">';
					
		include($boarddir . '/bnt/galaxy.php');
		
		echo '
						</div>
				</td>
			</tr>
		</table>';
	}
	// Special display for the create player screen
	elseif ($_GET['sa'] == 'createplayer' || $_GET['sa'] == 'createplayer2')
	{
	
		echo '
		<table align="center" border="0" cellpadding="0" cellspacing="0" >
			<tr>
				<td>
						<div id="bnt_mainframe" class="bnt_mainframe_display">';
					
		if ($_GET['sa'] == 'createplayer')
			include($boarddir . '/bnt/createplayer.php');
		else
			include($boarddir . '/bnt/createplayer2.php');
		
		echo '
						</div>
				</td>
			</tr>
		</table>';
	}
	// Output normal display with full menu
	else
	{
		echo '
		<table align="center" border="0" cellpadding="0" cellspacing="0" >
			<tr>
				<td valign="top">
						<div id="bnt_leftframe" class="bnt_leftframe_display">';
	
		include($boarddir . '/bnt/main_menu.php');	
	
		echo '		
						</div>
				</td>
				<td valign="top">
						<div id="bnt_mainframe" class="bnt_mainframe_display">';
			
		$action = $_GET['sa'];
		include($boarddir . '/bnt/' . $action . '.php');
		
		echo '
							</div>
					</td>
					<td valign="top">
							<div id="bnt_rightframe" class="bnt_rightframe_display">';
		
		include($boarddir . '/bnt/right_frame.php');	
		
		echo '		
							</div>
					</td>
				</tr>
			</table>';
	}
	
	echo '
	</div>
	<div class="bnt_copyright">
		<ul class="smalltext">
			<li class="copywrite">Modified for SMF by James A. Blake</li>
			<li class="copywrite">Copyright 2000-2005 Ron Harwood and L. Patrick Smallwood</li>
		</ul>
	</div>';
}
?>